//
//  MSWeaponInfo.h
//  MagicSword
//
//  Created by Netease on 15/11/18.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SpriteKit/SpriteKit.h>

typedef NS_ENUM(NSInteger, MSWeaponType) {
    MSWeaponType_Sword  = 1,          // 剑
    MSWeaponType_Axe    = 2,          // 斧
    MSWeaponType_Spear  = 3,          // 枪
    MSWeaponType_Magic  = 4,          // 法
    MSWeaponType_Bow    = 5,          // 弓
};

typedef NS_ENUM(NSInteger, MSWeaponModel) {
    MSWeaponModel_1,        // 1.木剑
    MSWeaponModel_2,        // 2.铁剑
    MSWeaponModel_3,        // 3.银剑
    MSWeaponModel_4,        // 4.木斧
    MSWeaponModel_5,        // 5.铁斧
    MSWeaponModel_6,        // 6.银斧
    MSWeaponModel_7,        // 7.木枪
    MSWeaponModel_8,        // 8.铁枪
    MSWeaponModel_9,        // 9.银枪
    MSWeaponModel_10,       // 10.火
    MSWeaponModel_11,       // 11.冰
    MSWeaponModel_12,       // 12.雷
    MSWeaponModel_13,       // 10.木弓
    MSWeaponModel_14,       // 11.铁弓
    MSWeaponModel_15,       // 12.银弓
};

typedef NS_ENUM(NSInteger, MSAttackDistanceType) {
    MSAttackDistanceType_A,        // 1攻击距离 一般
    MSAttackDistanceType_B,        // 2攻击距离 弓
    MSAttackDistanceType_C,        // 1-2攻击距离 法师
};

@interface MSWeaponInfo : NSObject

@property (strong, nonatomic) NSString *name;
@property (assign, nonatomic) MSWeaponType type;
@property (assign, nonatomic) MSWeaponModel model;

@property (nonatomic, assign) NSInteger Attack;     //攻击
@property (nonatomic, assign) NSInteger Crit;       //暴击
@property (nonatomic, assign) NSInteger DoubleHit;  //连击
@property (nonatomic, assign) NSInteger Vampire;    //吸血

@property (nonatomic, strong) NSString *detailMsg;  //特殊性
@property (nonatomic, assign) NSInteger useCount;   //可使用次数

@property (nonatomic, strong) NSString *imageName;  //图标

+ (NSDictionary *)getDictFromInfo:(MSWeaponInfo *)Info;
+ (MSWeaponInfo *)getInfoFromDict:(NSDictionary *)dict;

@end
